package com.supermarket.api.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 商品资源表
 * @author 李其伟
 * @date 2023/11/15
 */
@Data
@Entity
@Table(name = "sm_product_res")
@org.hibernate.annotations.Table(appliesTo = "sm_product_res",comment="商品资源表")
public class ProductResEntity extends BaseEntity {

    @Column(name = "name", columnDefinition = " varchar(256) not null comment '名称' ")
    private String name;

    @Column(name = "uuid", columnDefinition = " char(64) not null unique comment '资源标识' ")
    private String uuid;

    @Column(name = "file", columnDefinition = " varchar(128) comment '文件' ")
    private String file;

    @Column(name = "password", columnDefinition = " varchar(64) comment '密码' ")
    private String password;

    @Column(name = "speak", columnDefinition = " varchar(1028) comment '话术' ")
    private String speak;

    @Column(name = "audit_status", columnDefinition = " int(11) comment '审核状态：0->未审核；1->审核通过；2->审核未通过' ")
    private Integer auditStatus;

    @Column(name = "audit_remark", columnDefinition = " varchar(512) comment '审核备注' ")
    private String auditRemark;

    @Column(name = "shop_id", columnDefinition = " bigint(20) comment '店铺主键' ")
    private Long shopId;

    @Column(name = "delete_status", columnDefinition = " int(11) comment '删除状态：0->未删除；1->已删除' ")
    private Integer deleteStatus;

    @Column(name = "update_time", columnDefinition = " datetime comment '修改时间' ")
    private Date updateTime;


}
